import colorama as c

def warn(errProgram = "", errRes = ""):
    if (errRes == ''):
        raise ValueError("'errProgram' or 'errRes' argument must not be none")
    print(f"[{c.Fore.YELLOW}{c.Style.BRIGHT}WARN{c.Style.NORMAL}{c.Fore.RESET}]" +  # Header [ERROR]
    f" {c.Style.BRIGHT}{c.Back.YELLOW}{c.Fore.CYAN}{errProgram}{c.Fore.RESET}{c.Back.RESET}{c.Style.NORMAL}" + # WHAT PROGRAM ERR
    f"{c.Back.RESET}: {c.Fore.YELLOW}{errRes}{c.Fore.RESET}") if errProgram != '' else \
    print(f"[{c.Fore.YELLOW}{c.Style.BRIGHT}WARN{c.Style.NORMAL}{c.Fore.RESET}]" +  # Header [ERROR]
    f" {c.Style.BRIGHT}{c.Back.YELLOW}{c.Fore.CYAN}{errProgram}{c.Fore.RESET}{c.Back.RESET}{c.Style.NORMAL}" + # WHAT PROGRAM ERR
    f"{c.Back.RESET}{c.Fore.YELLOW}{errRes}{c.Fore.RESET}") # WHAT HAPPEND
